package com.gklyj.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gklyj.pojo.Position;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface positionService extends IService<Position> {
    List<Position> searchPositions(Position position);
    List<Position> listPositionsExcludeAdmin();
    List<Position> ZpsearchPositions(Position position);
    List<Position> AdsearchPositions(Position position);

    List<Position> listPositionsAdmin();
    List<Position> ListThisGangwei(String department);

    List<Position> ThisZpGangweiSearchs(Position position);

    Integer GetGwNumberByTime(String time);

    //求所有岗位数量
    Integer GetGangweiNumber();

    //求某天岗位数量
    Integer GetOneDayGangweiNumber(String time);

    //根据条件查一条职位信息
    Position FindOnePosition(String department,String p_title);

    //根据条件查一条职位信息
    Position FindOnePosition1(String department,String p_title,String name);

    //职位已选人数加一
    boolean AddPositionQuantity(String department,String p_title);

    //职位已选人数减一
    boolean ReducePositionQuantity(String department,String p_title);
}
